export default [{
        path: '/home',
        component: () => import('@/pages/Home'),
        meta: {
            show: true
        }
    },
    {
        path: '/search',
        component: () => import('@/pages/Search'),
        meta: {
            show: false
        }
    },
    {
        name: 'searchresult',
        path: '/searchresult/:categoryId',
        component: () => import('@/pages/SearchResult'),
        meta: {
            show: false
        }
    },
    {
        path: '/',
        redirect: '/home'
    },
    {
        // 猜你喜欢详情
        name: 'likedetail',
        path: '/likedetail/:id?',
        component: () => import('@/pages/LikeDetail'),
        meta: {
            show: false
        }
    }, 
    // 登录
    {
        path: '/login',
        component: () => import('@/pages/Login'),
        meta: {
            show: false
        }
    },
    // 注册
    {
        path: '/register',
        component: () => import('@/pages/Register'),
        meta: {
            show: false
        }
    },
    // 找回密码
    {
        path: '/lookfor',
        component: () => import('@/pages/LookFor'),
        meta: {
            show: false
        }
    },
    // 第三方登录
    {
        path: '/other-login',
        component: () => import('@/pages/OtherLogin'),
        meta: {
            show: false
        }
    },
//    立即购买
    {
        name: 'buy',
        path: '/buy',
        component: () => import('@/pages/Buy'),
        meta: {
            show: false
        }
    },
    {
        name: 'personal',
        path: '/personal',
        component: () => import('@/pages/Personal')
    },
    {
        name: 'movie',
        path: '/movie/:id',
        component: () => import('@/pages/Movie'),
        meta: {
            show: true
        }
    },
    {
        name: 'movielist',
        path: '/movielist/:id',
        component: () => import('@/pages/MovieList'),
        meta: {
            show: true
        }
    },
    {
        name: 'orderdetails',
        path: '/orderdetails/',
        component: () => import('@/pages/OrderDetails'),
        meta: {
            show: true
        }
    }
]